package com.wulinbus.service;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wulinbus.model.RemitOrderModel;
import com.wulinbus.model.ScriptModel;
import com.wulinbus.model.ScriptOwnModel;

public interface ScriptService {

	public void addScript(ScriptModel scriptModel);

	public ScriptModel findScriptBySid(Integer sid);

	public List<ScriptModel> findListByUid(Integer uid);

	public void addOwnScript(ScriptOwnModel scriptOwnModel);

	public List<ScriptOwnModel> findOrderScriptOwnListByUid(Integer uid);

	public void plusAttributeCount(Integer sid);

	public List<ScriptModel> getScriptList(String keyword, Integer start,
			Integer pageSize);

	public Integer count(String keyword);

	public List<ScriptModel> getScriptListTimeDown(Integer start, Integer pageSize);

	public List<ScriptModel> getScriptListTimeUp(Integer start,Integer pageSize);

	public List<ScriptOwnModel> getAttributeList(Integer sid,Integer start, Integer pageSize);

	public Integer attributeCount(Integer sid);

	public List<ScriptModel> getScriptListRemainingTimeDown(Integer start,
			Integer pageSize);

	public List<ScriptModel> getScriptListRemainingTimeUp(Integer start,
			Integer pageSize);

	public List<ScriptModel> getScriptListParticipateCountDown(Integer start,
			Integer pageSize);

	public List<ScriptModel> getScriptListParticipateCountUp(Integer start,
			Integer pageSize);

	public List<ScriptModel> getScriptListAmountDown(Integer amount_b,
			Integer amount_e, Integer start, Integer pageSize);

	public List<ScriptModel> getScriptListAmountUp(Integer amount_b,
			Integer amount_e, Integer start, Integer pageSize);

	public ScriptOwnModel findScriptOwnByOwnSid(Integer own_sid);

	public List<ScriptOwnModel> findScriptOwnListByUid(Integer uid,
			Integer start, Integer pageSize);

	public Integer attributeCountByUid(Integer uid);

	public void like(Integer own_sid);

	public List<ScriptOwnModel> getScriptOwnListOrderLike(Integer count);

	public List<ScriptModel> getScriptListByUid(Integer uid, Integer start,
			Integer pageSize);

	public Integer countByUid(Integer uid);
	
	public Integer addViewNums(Integer own_sid);

	public List<ScriptOwnModel> getScriptAttributeListByUid(Integer uid,Integer start, Integer pageSize);

	public Integer addLike(Integer uid,Integer own_sid);
	
	public Integer getLike(Integer uid,Integer own_sid);
	
	public Integer countAttributeByUid(Integer uid);

	public void editorScript(ScriptModel scriptModel);

	public List<ScriptModel> getScriptListBySids(List<Integer> sids);

	public void editorOwnScript(ScriptOwnModel scriptOwnModel);

	public List<ScriptModel> getAllScriptList();

	public List<ScriptModel> getMaxAttributeScriptList();

	public Integer delete(Integer sid);

	public List<ScriptOwnModel> getScriptOwnList(String keyword, Integer start,
			Integer pageSize);

	public Integer ScriptOwnCount(String keyword);

	public Integer attributeDelete(Integer own_sid);

	public List<ScriptModel> getCurrentTimeScriptList(String systemDate);

	public ScriptOwnModel getWinnerModel(Integer sid);


}
